package tom.client.stock;

import java.util.List;

import tom.shared.Product;
import tom.shared.StkAdjust;
import tom.shared.Stock;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ServiceAsync {

	void selectProduct(String id, AsyncCallback<Product> callback);

	void deleteProduct(String id, AsyncCallback<Boolean> callback);

	void insertProduct(Product record, AsyncCallback<Boolean> callback);

	void updateProduct(Product record, AsyncCallback<Boolean> callback);

	void selectStock(String proCode, AsyncCallback<List<Stock>> callback);

	void selectVAT(AsyncCallback<List<Double>> callback);

	void updateStock(String proCode, String invNo, String fromStock, String toStock, Integer qty,
			AsyncCallback<Boolean> callback);

	void selectStkAdjustByInvoice(String invNo, String proCode,
			AsyncCallback<List<StkAdjust>> callback);

	void deleteStkAdjust(String stkAdjCode, AsyncCallback<Boolean> callback);

}
